<?php if (!defined("BASEPATH")) exit("No direct script access allowed"); ?>

<div id="basicDataTabsContainer"></div>

<script type="text/javascript">

	Ext.onReady(function() {

		var basicDataTabs = new Ext.TabPanel({
			renderTo: 'basicDataTabsContainer',
			id: 'basicDataTabs',
			border: false,
			enableTabScroll: true,
		});

		basicDataTabs.add({
			title: '<?=$this->db->escape_str($this->lang->line("MAIN_PAGE_SLIDER"))?>',
			id: 'Tab_main_page_slider',
			listeners: {
				activate: function(panel) {
					Ext.getCmp('basicDataTabs').getActiveTab().getUpdater().refresh();
				}
			},
			autoLoad:{url: '<?=site_url()?>admin/basic_data/MAIN_SLIDER', scripts:true}
		}).show();
		
		basicDataTabs.add({
			title: '<?=$this->db->escape_str($this->lang->line("COURSES"))?>',
			id: 'Tab_KEPZESEK',
			autoLoad:{url: '<?=site_url()?>admin/basic_data/SUBJECT', scripts:true},
			listeners: {
				activate: function(panel) {
					Ext.getCmp('basicDataTabs').getActiveTab().getUpdater().refresh();
				}
			}
		});

		basicDataTabs.add({
			title: '<?=$this->db->escape_str($this->lang->line("RECOMMENDATIONS"))?> - <?=$this->db->escape_str($this->lang->line("COUNTRIES"))?>',
			id: 'Tab_AJANLOK_COU',
			listeners: {
				activate: function(panel) {
					Ext.getCmp('basicDataTabs').getActiveTab().getUpdater().refresh();
				}
			},
			autoLoad:{url: '<?=site_url()?>admin/basic_data/SPONSOR/COU', scripts:true}
		});

		basicDataTabs.add({
			title: '<?=$this->db->escape_str($this->lang->line("RECOMMENDATIONS"))?> - <?=$this->db->escape_str($this->lang->line("CITIES"))?>',
			id: 'Tab_AJANLOK_CITY',
			listeners: {
				activate: function(panel) {
					Ext.getCmp('basicDataTabs').getActiveTab().getUpdater().refresh();
				}
			},
			autoLoad:{url: '<?=site_url()?>admin/basic_data/SPONSOR/CITY', scripts:true}
		});

		basicDataTabs.add({
			title: '<?=$this->db->escape_str($this->lang->line("RECOMMENDATIONS"))?> - <?=$this->db->escape_str($this->lang->line("INSTITUTES"))?>',
			id: 'Tab_AJANLOK_INS',
			listeners: {
				activate: function(panel) {
					Ext.getCmp('basicDataTabs').getActiveTab().getUpdater().refresh();
				}
			},
			autoLoad:{url: '<?=site_url()?>admin/basic_data/SPONSOR/INS', scripts:true}
		});

	});

</script>